<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>基层AI辅助诊断系统 - 病历详情</title>
    <!-- 引入Element Plus的样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css">
    <!-- 引入Vue 3 -->
    <script src="https://unpkg.com/vue@3"></script>
    <!-- 引入Element Plus组件库 -->
    <script src="https://unpkg.com/element-plus"></script>
    <!-- 引入中文语言包 -->
    <script src="https://unpkg.com/element-plus/dist/locale/zh-cn.min.js"></script>
    <style>
        /* 基础样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
            background: #FFFFFF;
            color: var(--text-primary);
            font-size: 14px;
            line-height: 1.5;
            margin: 0;
        }

        /* 色彩系统 - 基于HIS系统现代极简风设计规范 */
        :root {
            /* 主色调 */
            --primary: #0F6CBD;
            --primary-light: #D0E7FF;
            --primary-dark: #0A4F8D;
            
            /* 辅助色 */
            --success: #0F8A5F;
            --warning: #F59337;
            --error: #D13438;
            --info: #0078D4;
            
            /* 中性色 - 文字 */
            --text-primary: #1A1A1A;
            --text-secondary: #4D4D4D;
            --text-tertiary: #767676;
            --text-disabled: #A6A6A6;
            
            /* 中性色 - 边框与分割线 */
            --border-strong: #CCCCCC;
            --border-normal: #E0E0E0;
            --border-light: #F0F0F0;
            --divider: #F5F5F5;
            
            /* 中性色 - 背景 */
            --bg-primary: #FFFFFF;
            --bg-secondary: #F9F9F9;
            --bg-card: #FFFFFF;
            --bg-disabled: #F5F5F5;
            
            /* 医疗专业色 */
            --medical-critical: #B91C1C;
            --medical-abnormal: #F59E0B;
            --medical-normal: #10B981;
            --medical-pending: #3B82F6;
            --medical-completed: #9CA3AF;
            
            /* 间距系统 */
            --spacing-2: 2px;
            --spacing-4: 4px;
            --spacing-8: 8px;
            --spacing-12: 12px;
            --spacing-16: 16px;
            --spacing-24: 24px;
            --spacing-32: 32px;
            --spacing-40: 40px;
            --spacing-48: 48px;
            
            /* 字体大小 */
            --font-page-title: 20px;
            --font-card-title: 16px;
            --font-table-title: 14px;
            --font-body: 14px;
            --font-table: 13px;
            --font-small: 12px;
            
            /* 行高 */
            --line-height-title: 1.4;
            --line-height-body: 1.5;
            --line-height-table: 1.2;
            --line-height-form: 1.4;
            
            /* 圆角 */
            --radius-small: 2px;
            --radius-medium: 4px;
            
            /* 动画时间 */
            --transition-fast: 150ms;
            --transition-normal: 200ms;
            --transition-slow: 300ms;
            
            /* 导航统一宽度 */
            --nav-item-width: 140px;
        }

        [v-cloak] {
            display: none;
        }

        /* 布局容器 */
        .container {
            width: 100%;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            background-color: var(--bg-secondary);
        }

        /* 顶部导航栏 */
        .header {
            height: 60px;
            background-color: var(--bg-primary);
            border-bottom: 1px solid var(--border-normal);
            display: flex;
            align-items: center;
            padding: 0 var(--spacing-24);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            position: relative;
            z-index: 100;
        }

        .header-spacer {
            width: 200px;
            flex-shrink: 0;
        }

        #app-nav {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10;
            width: calc(100% - 400px); /* 两侧各200px 对称留白 */
            display: flex;
            justify-content: center;
        }
        
        /* Element Plus菜单样式覆盖 */
        .el-menu {
            border: none !important;
            background-color: transparent !important;
        }
        
        .el-menu--horizontal > .el-menu-item,
        .el-menu--horizontal > .el-sub-menu .el-sub-menu__title {
            height: 60px;
            line-height: 60px;
            color: var(--text-secondary);
            font-weight: 500;
            font-size: var(--font-body);
            padding: 0;
            width: var(--nav-item-width);
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .el-sub-menu__icon-arrow { display: none !important; }

        .el-menu--horizontal > .el-sub-menu .el-sub-menu__title::after {
            content: '';
            display: inline-block;
            width: 16px;
            height: 16px;
            margin-left: 8px;
            background-repeat: no-repeat;
            background-position: center;
            background-size: 16px 16px;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23767676' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
        }

        .el-sub-menu:hover > .el-sub-menu__title::after,
        .el-sub-menu.is-active > .el-sub-menu__title::after {
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F6CBD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
        }

        .el-sub-menu.is-opened > .el-sub-menu__title::after {
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F6CBD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 15 12 9 18 15'/></svg>");
        }
        
        .el-menu--horizontal > .el-menu-item.is-active,
        .el-menu--horizontal > .el-sub-menu.is-active .el-sub-menu__title {
            color: var(--primary) !important;
            border-bottom: 2px solid var(--primary);
            font-weight: 500;
        }
        
        .el-menu--horizontal > .el-menu-item:not(.is-disabled):hover,
        .el-menu--horizontal > .el-menu-item:not(.is-disabled):focus,
        .el-menu--horizontal > .el-sub-menu:not(.is-disabled):hover .el-sub-menu__title {
            color: var(--primary);
            background-color: transparent;
        }
        
        /* 下拉菜单样式覆盖 */
        .el-menu--popup {
            width: var(--nav-item-width) !important;
            min-width: var(--nav-item-width) !important;
            max-width: var(--nav-item-width) !important;
            border-radius: var(--radius-small);
            padding: 4px 0;
            border: 1px solid var(--border-light);
            border-top: 2px solid var(--primary);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            text-align: center !important;
        }
        
        .el-menu--popup .el-menu-item {
            height: 36px;
            line-height: 36px;
            padding: 0 !important;
            color: var(--text-secondary);
            white-space: nowrap;
            text-align: center;
            width: var(--nav-item-width) !important;
            box-sizing: border-box;
            overflow: hidden;
            text-overflow: ellipsis;
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            font-size: var(--font-body);
        }
        
        .el-menu--popup .el-menu-item:hover {
            background-color: var(--bg-secondary);
            color: var(--primary);
        }

        .user-section {
            display: flex;
            align-items: center;
            gap: var(--spacing-16);
            margin-left: auto;
            z-index: 10;
            width: 200px;
            justify-content: flex-end;
            flex-shrink: 0;
            cursor: pointer;
            padding: 8px 12px;
            border-radius: var(--radius-small);
            transition: background-color var(--transition-fast);
            color: var(--text-secondary);
        }

        .user-section:hover {
            background-color: var(--bg-secondary);
        }

        .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background-color: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-weight: 500;
        }

        .user-name {
            font-weight: 500;
            font-size: var(--font-body);
            color: var(--text-secondary);
        }

        .user-arrow {
            color: var(--text-tertiary);
            transition: color var(--transition-normal);
        }

        .user-section:hover .user-arrow {
            color: var(--primary);
        }

        /* 用户下拉弹窗 */
        .user-dropdown {
            position: absolute;
            top: 60px; /* 紧贴头部底部 */
            right: var(--spacing-24);
            width: 160px;
            background: var(--bg-primary);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-small);
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            display: none;
            z-index: 200;
            overflow: hidden;
        }

        .user-dropdown .item {
            padding: 10px 12px;
            color: var(--text-secondary);
            font-size: var(--font-body);
            cursor: pointer;
            white-space: nowrap;
        }

        .user-dropdown .item:hover {
            background-color: var(--bg-secondary);
            color: var(--primary);
        }

        /* 面包屑导航 */
        .breadcrumb {
            padding: var(--spacing-16) var(--spacing-24);
            border-bottom: 1px solid var(--border-light);
            background-color: var(--bg-primary);
        }

        .breadcrumb-item {
            font-size: var(--font-body);
            color: var(--text-tertiary);
            display: inline-flex;
            align-items: center;
        }

        .breadcrumb-item a {
            color: var(--primary);
            text-decoration: none;
        }

        .breadcrumb-item a:hover {
            text-decoration: underline;
        }

        .breadcrumb-separator {
            margin: 0 var(--spacing-8);
            color: var(--text-tertiary);
        }

        .breadcrumb-current {
            color: var(--text-secondary);
            font-weight: 500;
        }
        
        /* 主要内容区域样式 */
        .main-content {
            padding: var(--spacing-24);
            flex: 1;
            background-color: var(--bg-primary);
            width: 100%;
        }
        
        /* 页面标题区域 */
        .page-title-section {
            margin-bottom: var(--spacing-24);
        }
        
        .page-title {
            font-size: var(--font-page-title);
            font-weight: 600;
            color: var(--text-primary);
            line-height: var(--line-height-title);
        }
        
        /* 患者信息卡片 */
        .patient-info-card {
            background-color: var(--bg-primary);
            border: 1px solid var(--border-normal);
            border-radius: var(--radius-small);
            padding: var(--spacing-16);
            margin-bottom: var(--spacing-24);
        }
        
        .patient-info-title {
            font-size: var(--font-card-title);
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: var(--spacing-12);
        }
        
        .patient-info-content {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: var(--spacing-16);
            font-size: var(--font-body);
            color: var(--text-secondary);
            line-height: var(--line-height-body);
        }
        
        .patient-info-item {
            display: inline-flex;
            align-items: center;
        }
        
        .patient-info-label {
            font-weight: 500;
            margin-right: var(--spacing-4);
        }
        
        /* 病历内容卡片 */
        .medical-record-card {
            background-color: var(--bg-primary);
            border: 1px solid var(--border-normal);
            border-radius: var(--radius-small);
            padding: var(--spacing-16);
        }
        
        .medical-record-title {
            font-size: var(--font-card-title);
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: var(--spacing-16);
        }
        
        .medical-record-content {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-24);
        }
        
        /* 病历各部分样式 */
        .medical-section {
            margin-bottom: var(--spacing-24);
        }
        
        .medical-section-title {
            font-size: var(--font-body);
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: var(--spacing-8);
        }
        
        .medical-section-content {
            font-size: var(--font-body);
            color: var(--text-secondary);
            line-height: var(--line-height-body);
        }
        
        /* 两列布局 */
        .two-column-layout {
            display: flex;
            gap: var(--spacing-24);
            margin-bottom: var(--spacing-24);
        }
        
        .two-column-layout .medical-section {
            flex: 1;
            margin-bottom: 0;
        }
        
        /* 表格样式 */
        .medical-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: var(--spacing-16);
        }
        
        .medical-table th {
            background-color: var(--bg-secondary);
            padding: var(--spacing-8) var(--spacing-12);
            text-align: left;
            font-weight: 600;
            color: var(--text-secondary);
            border: 1px solid var(--border-normal);
            font-size: var(--font-table);
        }
        
        .medical-table td {
            padding: var(--spacing-8) var(--spacing-12);
            border: 1px solid var(--border-light);
            color: var(--text-secondary);
            font-size: var(--font-table);
        }
        
        /* 医嘱列表 */
        .advice-list {
            list-style-type: none;
            padding-left: 0;
        }
        
        .advice-list li {
            margin-bottom: var(--spacing-8);
            position: relative;
            padding-left: var(--spacing-24);
        }
        
        .advice-list li::before {
            content: counter(item) ". ";
            counter-increment: item;
            position: absolute;
            left: 0;
        }
        
        /* 费用信息 */
        .cost-info {
            display: flex;
            gap: var(--spacing-24);
            flex-wrap: wrap;
        }
        
        .cost-item {
            display: flex;
            align-items: center;
        }
        
        .cost-label {
            font-weight: 500;
            margin-right: var(--spacing-4);
        }
        
        /* 响应式样式 */
        @media (max-width: 768px) {
            .header {
                flex-wrap: wrap;
                padding: var(--spacing-12) var(--spacing-16);
                height: auto;
            }
            
            .header-spacer {
                width: 100%;
                justify-content: center;
                margin-bottom: 8px;
            }
            
            .user-section {
                width: 100%;
                justify-content: center;
                order: 3;
                margin-top: 8px;
            }
            
            #app-nav {
                position: relative;
                left: 0;
                transform: none;
                width: 100%;
                order: 3;
                margin-top: var(--spacing-8);
            }
            
            /* Element Plus移动端菜单样式覆盖 */
            .el-menu--collapse {
                width: 100%;
            }
            
            .el-menu--horizontal {
                flex-wrap: wrap;
                width: 100%;
                overflow-x: auto;
                white-space: nowrap;
                -webkit-overflow-scrolling: touch;
                padding-bottom: var(--spacing-4);
                justify-content: center;
            }
            
            .el-menu--horizontal > .el-menu-item,
            .el-menu--horizontal > .el-sub-menu .el-sub-menu__title {
                height: 48px;
                line-height: 48px;
            }
            
            /* 移动端下拉菜单样式 */
            .el-menu--popup {
                position: fixed;
                top: auto !important;
                left: 0 !important;
                right: 0 !important;
                width: 100%;
                max-height: 60vh;
                overflow-y: auto;
                border-radius: 8px 8px 0 0;
            }
            
            .main-content {
                padding: var(--spacing-16);
            }
            
            .page-title-section {
                margin-bottom: var(--spacing-16);
            }
            
            .patient-info-content {
                flex-direction: column;
                align-items: flex-start;
                gap: var(--spacing-8);
            }
            
            .two-column-layout {
                flex-direction: column;
                gap: var(--spacing-16);
            }
            
            .medical-table {
                display: block;
                overflow-x: auto;
                white-space: nowrap;
            }
            
            .cost-info {
                flex-direction: column;
                gap: var(--spacing-8);
            }
        }
    </style>
</head>
<body>
    <div id="app" class="container">
        <!-- 顶部导航栏 - 使用Element Plus组件 -->
        <header class="header">
            <div class="header-spacer"></div>
            <div id="app-nav">
                <el-menu 
                    :default-active="activeIndex" 
                    class="el-menu-demo" 
                    mode="horizontal" 
                    @select="handleSelect"
                    :ellipsis="false"
                    :popper-offset="0"
                    popper-class="custom-dropdown">
                    <el-menu-item index="1">开始问诊</el-menu-item>
                    <el-sub-menu index="2" popper-class="custom-dropdown">
                        <template #title>病历管理</template>
                        <el-menu-item index="2-1">病历查询</el-menu-item>
                        <el-menu-item index="2-2">病历模板</el-menu-item>
                        <el-menu-item index="2-3">个人药品</el-menu-item>
                    </el-sub-menu>
                    <el-menu-item index="3">患者管理</el-menu-item>
                    <el-sub-menu index="4" popper-class="custom-dropdown">
                        <template #title>数据统计</template>
                        <el-menu-item index="4-1">诊断统计</el-menu-item>
                        <el-menu-item index="4-2">宏观统计</el-menu-item>
                    </el-sub-menu>
                    <el-menu-item index="5">医学知识</el-menu-item>
                    <el-sub-menu index="6" popper-class="custom-dropdown">
                        <template #title>基础数据</template>
                        <el-menu-item index="6-1">药品管理</el-menu-item>
                    </el-sub-menu>
                    <el-sub-menu index="7" popper-class="custom-dropdown">
                        <template #title>消息通知</template>
                        <el-menu-item index="7-1">通知查看</el-menu-item>
                        <el-menu-item index="7-2">通知发布</el-menu-item>
                    </el-sub-menu>
                    <el-sub-menu index="8" popper-class="custom-dropdown">
                        <template #title>用户管理</template>
                        <el-menu-item index="8-1">用户管理</el-menu-item>
                        <el-menu-item index="8-2">角色管理</el-menu-item>
                    </el-sub-menu>
                </el-menu>
            </div>
            <div class="user-section" id="userSection">
                <span class="user-name">张医生</span>
                <svg class="user-arrow" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                    <polyline points="6 9 12 15 18 9"></polyline>
                </svg>
            </div>
            <div class="user-dropdown" id="userDropdown">
                <div class="item">个人中心</div>
                <div class="item">退出登录</div>
            </div>
        </header>
        
        <!-- 面包屑导航 -->
        <div class="breadcrumb">
            <div class="breadcrumb-item">
                <a href="03-病历查询页.html">病历列表</a>
                <span class="breadcrumb-separator">></span>
                <span class="breadcrumb-current">病历详情</span>
            </div>
        </div>
        
        <!-- 主要内容区域 -->
        <div class="main-content">
            <!-- 页面标题 -->
            <div class="page-title-section">
                <h1 class="page-title">病历详情</h1>
            </div>
            
            <!-- 患者信息卡片 -->
            <div class="patient-info-card">
                <h2 class="patient-info-title">患者信息</h2>
                <div class="patient-info-content">
                    <div class="patient-info-item">
                        <span class="patient-info-label">患者姓名:</span>
                        <span>张三</span>
                    </div>
                    <div class="patient-info-item">
                        <span class="patient-info-label">性别:</span>
                        <span>男</span>
                    </div>
                    <div class="patient-info-item">
                        <span class="patient-info-label">年龄:</span>
                        <span>35岁</span>
                    </div>
                    <div class="patient-info-item">
                        <span class="patient-info-label">身份证号:</span>
                        <span>310101198909091234</span>
                    </div>
                    <div class="patient-info-item">
                        <span class="patient-info-label">联系电话:</span>
                        <span>13812345678</span>
                    </div>
                    <div class="patient-info-item">
                        <span class="patient-info-label">就诊日期:</span>
                        <span>2025-09-28</span>
                    </div>
                </div>
            </div>
            
            <!-- 病历内容卡片 -->
            <div class="medical-record-card">
                <h2 class="medical-record-title">病历内容</h2>
                <div class="medical-record-content">
                    <!-- 主诉 -->
                    <div class="medical-section">
                        <h3 class="medical-section-title">主诉:</h3>
                        <div class="medical-section-content">
                            发热、咳嗽3天。
                        </div>
                    </div>
                    
                    <!-- 现病史和过敏史 -->
                    <div class="two-column-layout">
                        <div class="medical-section">
                            <h3 class="medical-section-title">现病史:</h3>
                            <div class="medical-section-content">
                                患者3天前无明显诱因出现发热，体温最高达38.5℃，伴有咳嗽、咽痛、流涕等症状，无胸闷、气促，无恶心、呕吐、腹泻等消化道症状。
                            </div>
                        </div>
                        <div class="medical-section">
                            <h3 class="medical-section-title">过敏史:</h3>
                            <div class="medical-section-content">
                                否认药物过敏史。
                            </div>
                        </div>
                    </div>
                    
                    <!-- 既往史和个人史 -->
                    <div class="two-column-layout">
                        <div class="medical-section">
                            <h3 class="medical-section-title">既往史:</h3>
                            <div class="medical-section-content">
                                否认高血压、糖尿病等慢性病史，否认肝炎、结核等传染病史。
                            </div>
                        </div>
                        <div class="medical-section">
                            <h3 class="medical-section-title">个人史:</h3>
                            <div class="medical-section-content">
                                否认烟酒嗜好。
                            </div>
                        </div>
                    </div>
                    
                    <!-- 家族史 -->
                    <div class="medical-section">
                        <h3 class="medical-section-title">家族史:</h3>
                        <div class="medical-section-content">
                            否认家族遗传病史。
                        </div>
                    </div>
                    
                    <!-- 体格检查 -->
                    <div class="medical-section">
                        <h3 class="medical-section-title">体格检查:</h3>
                        <div class="medical-section-content">
                            <p><strong>生命体征:</strong> 体温38.2℃，脉搏92次/分，呼吸20次/分，血压126/78mmHg。</p>
                            <p><strong>一般状况:</strong> 咽部充血，双侧扁桃体Ⅰ度肿大，未见明显分泌物。</p>
                            <p><strong>专科检查:</strong> 双肺呼吸音清，未闻及明显干湿啰音。</p>
                        </div>
                    </div>
                    
                    <!-- 图像采集 -->
                    <div class="medical-section">
                        <h3 class="medical-section-title">图像采集:</h3>
                        <div class="medical-section-content">
                            [无图像]
                        </div>
                    </div>
                    
                    <!-- 诊断结果 -->
                    <div class="medical-section">
                        <h3 class="medical-section-title">诊断结果:</h3>
                        <div class="medical-section-content">
                            上呼吸道感染
                        </div>
                    </div>
                    
                    <!-- 诊断依据 -->
                    <div class="medical-section">
                        <h3 class="medical-section-title">诊断依据:</h3>
                        <div class="medical-section-content">
                            患者有发热、咳嗽、咽痛等上呼吸道感染症状，体格检查显示咽部充血，扁桃体肿大，符合上呼吸道感染的临床表现。
                        </div>
                    </div>
                    
                    <!-- 处方 -->
                    <div class="medical-section">
                        <h3 class="medical-section-title">处方:</h3>
                        <div class="medical-section-content">
                            <table class="medical-table">
                                <thead>
                                    <tr>
                                        <th>药品名称</th>
                                        <th>规格</th>
                                        <th>用法</th>
                                        <th>用量</th>
                                        <th>数量</th>
                                        <th>频次</th>
                                        <th>天数</th>
                                        <th>单价</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>布洛芬</td>
                                        <td>0.2g/片</td>
                                        <td>口服</td>
                                        <td>1片</td>
                                        <td>9片</td>
                                        <td>tid</td>
                                        <td>3天</td>
                                        <td>0.28元</td>
                                    </tr>
                                    <tr>
                                        <td>感冒灵</td>
                                        <td>10g/袋</td>
                                        <td>冲服</td>
                                        <td>1袋</td>
                                        <td>9袋</td>
                                        <td>tid</td>
                                        <td>3天</td>
                                        <td>2.50元</td>
                                    </tr>
                                    <tr>
                                        <td>板蓝根</td>
                                        <td>10g/袋</td>
                                        <td>冲服</td>
                                        <td>1袋</td>
                                        <td>9袋</td>
                                        <td>tid</td>
                                        <td>3天</td>
                                        <td>3.50元</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    
                    <!-- 医嘱 -->
                    <div class="medical-section">
                        <h3 class="medical-section-title">医嘱:</h3>
                        <div class="medical-section-content">
                            <ol class="advice-list" style="counter-reset: item;">
                                <li>多饮水，注意休息</li>
                                <li>避免辛辣刺激食物</li>
                                <li>症状无缓解，3天后复诊</li>
                            </ol>
                        </div>
                    </div>
                    
                    <!-- 费用明细 -->
                    <div class="medical-section">
                        <h3 class="medical-section-title">费用明细:</h3>
                        <div class="medical-section-content">
                            <div class="cost-info">
                                <div class="cost-item">
                                    <span class="cost-label">问诊费用:</span>
                                    <span>20元</span>
                                </div>
                                <div class="cost-item">
                                    <span class="cost-label">药品费用:</span>
                                    <span>45元</span>
                                </div>
                                <div class="cost-item">
                                    <span class="cost-label">费用合计:</span>
                                    <span>65元</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- JavaScript 交互逻辑 -->
    <script>
        // 创建Vue应用
        document.addEventListener('DOMContentLoaded', function() {
            const { createApp, ref } = Vue;
            
            // 创建导航菜单Vue应用
            const navApp = createApp({
                setup() {
                    const activeIndex = ref('2-1'); // 默认选中"病历查询"
                    
                    const handleSelect = (key, keyPath) => {
                        console.log(key, keyPath);
                        // 这里可以添加导航逻辑，如页面跳转等
                    };
                    
                    return {
                        activeIndex,
                        handleSelect
                    };
                }
            });
            
            // 使用Element Plus
            navApp.use(ElementPlus, {
                locale: ElementPlusLocaleZhCn
            });
            
            // 挂载Vue应用
            navApp.mount('#app-nav');

            // 用户下拉菜单
            const userSection = document.getElementById('userSection');
            const userDropdown = document.getElementById('userDropdown');
            
            if (userSection && userDropdown) {
                userSection.addEventListener('click', function(e) {
                    e.stopPropagation();
                    const isOpen = userDropdown.style.display === 'block';
                    userDropdown.style.display = isOpen ? 'none' : 'block';
                });

                document.addEventListener('click', function() {
                    userDropdown.style.display = 'none';
                });
            }
        });
    </script>
</body>
</html>
